import { createWebHistory, createRouter } from 'vue-router'
import Steer1 from '../views/Steer1.vue'
import Steer2 from '../views/Steer2.vue'
import Steer3 from '../views/Steer3.vue'
import Login from '../views/Login.vue'
import Register from '../views/Register.vue'
import Privacy from '../views/Privacy .vue'
import Article from '../views/Article.vue'
import Initiate from '../views/Initiate.vue'
import Forgot from '../views/Forgot .vue'
import New_password from '../views/New_password.vue'
import Update from '../views/Update.vue'
import Home from '../views/Home.vue'
import Like from '../views/Like.vue'
import Cart from '../views/Cart.vue'
import Message from '../views/Message.vue'
import My from '../views/My.vue'
import Search from '../views/Search.vue'
import ShoeDeta from '../views/ShoeDeta.vue'
import Shoes from '../views/Shoes.vue'
import Address from '../views/Address.vue'
import Addaddress from '../views/Addaddress.vue'
import Address_deta from '../views/Address_deta.vue'
import Success from '../views/Success.vue'
import Pay from '../views/Pay.vue'
import Pay2 from '../views/Pay2.vue'
import OrderDeta from '../views/OrderDeta.vue'
import OrderDeta2 from '../views/OrderDeta2.vue'
import Setting from '../views/Setting.vue'
import UpdateUser from '../views/UpdateUser.vue'
import test from '../views/test.vue'


const routes = [
    {
        path:"/",
        component:Initiate
    },
    {
        path:"/home",
        component:Home
    },
    {
        path:"/like",
        component:Like
    },
    {
        path:"/cart",
        component:Cart
    },
    {
        path:"/message",
        component:Message
    },
    {
        path:"/my",
        component:My
    },
    {
        path:"/steer1",
        component:Steer1
    },
    {
        path:"/steer2",
        component:Steer2
    },
    {
        path:"/steer3",
        component:Steer3
    },
    {
        path:"/login",
        component:Login
    },
    {
        path:"/register",
        component:Register
    },
    {
        path:"/privacy",
        component:Privacy
    },
    {
        path:"/article",
        component:Article
    },
    {
        path:"/forgot",
        component:Forgot
    },
    {
        path:"/new",
        component:New_password
    },
    {
        path:"/update",
        component:Update
    },
    {   path:"/search",
        component:Search
    },
    {   path:"/detail",
        component:ShoeDeta
    },
    {
        path:"/shoes",
        component:Shoes
    },
    {
        path:"/address",
        component:Address
    },
    {
        path:"/add",
        component:Addaddress
    },
    {
        path:"/adddeta",
        component:Address_deta
    },
    {
        path:"/success",
        component:Success
    },
    {
        path:"/pay",
        component:Pay
    },
    {
        path:"/pay2",
        component:Pay2
    },
    {
        path:"/order",
        component:OrderDeta
    },
    {
        path:"/order2",
        component:OrderDeta2
    },
    {
        path:"/setting",
        component:Setting
    },
    {
        path:"/user",
        component:UpdateUser
    },
    {
        path:"/test",
        component:test
    },
    
    // {
    //     path:"/",
    //     redirect:"/register"
    // }
]

// 将创建的配置关系挂载到router实例上
const router =createRouter({
    history:createWebHistory(),
    routes
})

export default router